package main

import (
	"fmt"
	"time"
)

func main() {
	//同一类型时间，可以分装个方法进行转换
	RFC3339Str := "2020-11-08T08:18:46+08:00"
	//cst, err := timeutil.RFC3339ToCSTLayout(RFC3339Str)
	//if err != nil {
	//	fmt.Println(err)
	//}
	newTime, err := time.Parse(time.RFC3339, RFC3339Str)
	if err != nil {
		fmt.Println("err=", err)
	}
	fmt.Println(newTime.In(time.Local).Format(time.DateTime))
}
